Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODDraft


EndClone

The EndClone method commits the specified cloning transaction.

void EndClone (in ODDraftKey key);
key
The draft key for the cloning transaction to be committed.
DISCUSSION
You must call this method to end a successful cloning transaction. The key parameter must be set to the draft key returned by the call to the BeginClone method that started the cloning transaction.

If the cloning transaction cannot be completed for any reason, you should call the AbortClone method instead of this method.

After this method executes successfully, the destination draft of this cloning transaction contains copies of all the persistent objects and storage units whose CloneInto methods were called by this draft's Clone method during the transaction.

EXCEPTIONS
kODErrInvalidDraftKey
The specified draft key is not the draft key for the current cloning transaction.
kODErrMoveIntoSelf
This clone transaction attempted to move a part into one of its embedded frames or embed one of the part's display frames into another of its display frames.
SEE ALSO
The ODDraftKey type (page 902).
The ODDraft::AbortClone method (page 151).
The ODDraft::BeginClone method (page 159).
The ODDraft::Clone method (page 162).
"EndClone" on page 325 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help